package com.hooya.fa.eu.biz.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author LiHongLiang
 * @since 2024-12-09
 */
@Getter
@Setter
@TableName("pl_2c_invoice")
public class Pl2cInvoices implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("invoice_id")
    private String invoiceId;

    @TableField("order_id")
    private String orderId;

    @TableField("type")
    private String type;

    @TableField("number")
    private String number;

    @TableField("year")
    private Integer year;

    @TableField("month")
    private Integer month;

    @TableField("sub_id")
    private Integer subId;

    @TableField("postfix")
    private String postfix;

    @TableField("date_add")
    private Integer dateAdd;

    @TableField("date_sell")
    private Integer dateSell;

    @TableField("date_pay_to")
    private Integer datePayTo;

    @TableField("currency")
    private String currency;

    @TableField("total_price_brutto")
    private Double totalPriceBrutto;

    @TableField("total_price_netto")
    private Double totalPriceNetto;

    @TableField("invoice_fullname")
    private String invoiceFullname;

    @TableField("invoice_company")
    private String invoiceCompany;

    @TableField("invoice_nip")
    private String invoiceNip;

    @TableField("invoice_address")
    private String invoiceAddress;

    @TableField("invoice_city")
    private String invoiceCity;

    @TableField("invoice_postcode")
    private String invoicePostcode;

    @TableField("invoice_country")
    private String invoiceCountry;

    @TableField("invoice_country_code")
    private String invoiceCountryCode;

    @TableField("seller")
    private String seller;

    @TableField("payment")
    private String payment;

    @TableField("correcting_to_invoice_id")
    private Integer correctingToInvoiceId;

    @TableField("correcting_reason")
    private String correctingReason;

    @TableField("correcting_items")
    private Boolean correctingItems;

    @TableField("correcting_data")
    private Boolean correctingData;

    @TableField("external_invoice_number")
    private String externalInvoiceNumber;

    @TableField("exchange_currency")
    private String exchangeCurrency;

    @TableField("exchange_rate")
    private String exchangeRate;

    @TableField("exchange_date")
    private String exchangeDate;

    @TableField("exchange_info")
    private String exchangeInfo;

    @TableField("external_id")
    private String externalId;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;
}
